<?php
/*
 * This file is part of FEED ON FEEDS - http://feedonfeeds.com/
 *
 * uninstall.php - if confirmed, drops FoF's tables
 *
 *
 * Copyright (C) 2004-2007 Stephen Minutillo
 * steve@minutillo.com - http://minutillo.com/steve/
 *
 * Distributed under the GPL - see LICENSE
 *
 */

include_once("fof-main.php");

fof_set_content_type();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<title>feed on feeds - uninstallation</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="fof.css" media="screen" />
		<script src="fof.js" type="text/javascript"></script>
		<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
	</head>

	<body id="panel-page">


<?php
if($_GET['really'])
{

$query = <<<EOQ
DROP TABLE `$FOF_FEED_TABLE`;
EOQ;

fof_db_query($query);

$query = <<<EOQ
DROP TABLE `$FOF_ITEM_TABLE`;
EOQ;

fof_db_query($query);

$query = <<<EOQ
DROP TABLE `$FOF_TAG_TABLE`;
EOQ;

fof_db_query($query);

$query = <<<EOQ
DROP TABLE `$FOF_ITEM_TAG_TABLE`;
EOQ;

fof_db_query($query);

$query = <<<EOQ
DROP TABLE `$FOF_SUBSCRIPTION_TABLE`;
EOQ;

fof_db_query($query);

$query = <<<EOQ
DROP TABLE `$FOF_USER_TABLE`;
EOQ;

fof_db_query($query);

echo 'Done.  Now just delete this entire directory and we\'ll forget this ever happened.';
}
else
{
?>
<script>
if(confirm('This is your last chance.  Do you really want to uninstall Feed on Feeds?'))
{
	document.location = './uninstall.php?really=really';
}
</script>
<a href="."><b>phew!</b></a>
</body></html>
<?php } ?>
